package com.quanxiaoha.weblog.web.controller;

import com.quanxiaoha.weblog.common.aspect.ApiOperationLog;
import com.quanxiaoha.weblog.common.utils.R;
import com.quanxiaoha.weblog.web.service.BlogSettingsService;
import lombok.AllArgsConstructor;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

@RestController
@RequestMapping("/blog/settings")
@AllArgsConstructor
public class BlogSettingsController {

    private BlogSettingsService blogSettingsService;

    @PostMapping("/detail")
    @ApiOperationLog(description = "前台获取博客详情")
    public R findDetail() {
        return blogSettingsService.findDetail();
    }

}
